import request from '@/utils/request'

// 查询运单列表
export function listWaybill(query) {
  return request({
    url: '/weight/waybill/list',
    method: 'get',
    params: query
  })
}

// 查询运单详细
export function getWaybill(waybillId) {
  return request({
    url: '/weight/waybill/' + waybillId,
    method: 'get'
  })
}

// 删除场站信息
export function delWaybill(id) {
  return request({
    url: '/weight/waybill/' + id,
    method: 'delete'
  })
}

// 导出运单
export function exportWaybill(query) {
  return request({
    url: '/weight/waybill/export',
    method: 'get',
    params: query
  })
}

export function exportWaybill2(ids) {
  return request({
    url: '/weight/waybill/export2/'+ ids,
    method: 'get'
  })
}
